﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace BlogManager
{
    public static class MsgBox
    {
        public static bool Confirm(string message)
        {
            return MessageBox.Show(
                message, 
                Application.ProductName, 
                MessageBoxButtons.YesNo, 
                MessageBoxIcon.Question, 
                MessageBoxDefaultButton.Button2) == DialogResult.Yes;
        }

        internal static void Error(string message)
        {
            MessageBox.Show(
                message,
                Application.ProductName,
                MessageBoxButtons.OK,
                MessageBoxIcon.Error);
        }

        internal static void Info(string message)
        {
            MessageBox.Show(
                message,
                Application.ProductName,
                MessageBoxButtons.OK,
                MessageBoxIcon.Information);
        }
    }
}
